<div class="new_mn">
        	<b class="spbg2 corner tl"></b>
    		<b class="spbg2 corner tr"></b>
    		<b class="spbg2 corner bl"></b>
    		<b class="spbg2 corner br"></b>
    		<? if($this->pageArray['pageNumber']>0):?>
    		<div class="titlebar-smenu clearfix">
    			<a href="">All Match</a>
    		</div>    		
    		<table class="list" border="1" cellpadding="0" cellspacing="0" bordercolor="#b9b9b9" style="border-collapse:collapse;">
    			<tr class="topic" style="background: #e5dede;">
    				<td><b>Team</b></td>
    				<td><b>Chipin Team</b></td>
    				<td><b>Chipin Time</b></td>
    				<td><b>Match Time</b></td>
    				<td><b>State</b></td>
    				<td><b>Chipin Dollar</b></td>
    				<td><b>Get Dollar</b></td>    				
    			</tr>
    			<? for($i=0;$i<count($this->resultArray);$i++):?>
    			<?php $match = $this->matchInfo->find($this->resultArray[$i]['MatchID'])->current();?>		
    			<tr>
    				<td style="padding-left: 5px; text-align: left;">
    					<?php 
								$teamA = $this->matchInfo->getTeam($match->TeamA);
								$teamB = $this->matchInfo->getTeam($match->TeamB);
								echo $teamA['en_flname'] . ' VS ' . $teamB['en_flname'];
						?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    					<?php
							 $chipinTeam = $this->matchInfo->getTeam($this->resultArray[$i]['TeamID']);
							 echo $chipinTeam['en_flname'];
						?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    						<?php echo date('Y-m-d H:i:s', $this->resultArray[$i]['ChipIndate'])?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    					<?php echo date('Y-m-d H:i:s', $match->MatchTime);?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    					<?php
								switch ($match->MatchStatus) {
									case '0':
										echo 'Not Start';
										break;
									case '1':
										echo 'Is Going';
										break;
									case '2':
										echo 'Has Not Paid';
										break;
									case '3':
										echo 'Has Paid';
										break;
								}							
						?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    					$<?php echo $this->score->score2dollar($this->resultArray[$i]['ChipInScore']);?>
    				</td>
    				<td style="padding-left: 5px; text-align: left;">
    					$<?php echo $this->score->score2dollar($this->resultArray[$i]['GetScore'])?>
    				</td>    				
    			</tr>
    			<? endfor;?>    		
    			<tr>
    				<td align="left" colspan="7">
    					<div style="margin-left: 8px; float: left;">All <?=$this->pageArray['pageNumber']?> page(s)　<?=$this->pageString?></div>
    				</td>
    			</tr>
    		</table>
    		</form>
    	 	<?php else:?>
    	 		<?php echo $this->getMsg('No Betting Match!');?>
    	 	<?php endif;?>
        </div>